<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>拼团管理</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/index.css" />
</head>
<body> 
<div class="order" style="padding-top:0">
	<div class="titile">拼团列表<a href="__MODULE__/FarmerSpellgroup/add/">新增拼团</a></div>
    <div class="prolist">
        <ul>
        <volist name="shop" id="vo">
            <li>
                <div class="pic"><neq name="vo.f_img" value=''><img src="{$vo.f_img}"/><else/><img src="__PUBLIC__/Wx/img/addpic.png" /></neq></div>	
                <div class="name">
                    <h2>{$vo.title}</h2>
                    <eq name="vo.state" value="0"><p>待审核</p></eq>
                    <eq name="vo.state" value="1"><p>审核通过</p></eq>
                    <eq name="vo.state" value="2"><p>不通过</p></eq>
                    <eq name="vo.state" value="4"><p>拼团结束</p></eq>
                    <h3>库存：<b>{$vo.num}</b>份</h3>
                    <div class="handle">
                    <eq name="vo.state" value="2"><a href="__MODULE__/FarmerSpellgroup/edit/id/{$vo.id}/">重新编辑</a><span class="del" data="{$vo.id}">删除</span></eq>
                    <eq name="vo.state" value="4"><a href="__MODULE__/FarmerSpellgroup/edit/id/{$vo.id}/">上架</a><span class="del" data="{$vo.id}">删除</span></eq>
                    
                    </div>
                </div>
            </li>
         </volist>   
        </ul>
    </div>
</div>
	<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript">
		$('.del').click(function(){ 
			$.get("__MODULE__/FarmerSpellgroup/del/id/"+$(this).attr("data"));
			$(this).parents('li').css('display','none') 
		});
	</script>
</body>
</html>